package com.animal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author animal
 * @since 2022-01-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AnAnimal对象", description="")
public class AnAnimal implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "an_id", type = IdType.AUTO)
    private Integer anId;

    @ApiModelProperty(value = "动物姓名")
    private String anName;

    @ApiModelProperty(value = "动物照片")
    private String picture;

    @ApiModelProperty(value = "动物种类，1 流浪动物，2 珍稀动物")
    private Integer type;

    @ApiModelProperty(value = "动物救助种类id，1 捐赠  , 2 领养")
    private Integer rescueTypeId;

    @ApiModelProperty(value = "总捐赠金额")
    private Float donationPrice;

    @ApiModelProperty(value = "领养原因")
    private String rescueCause;

    @ApiModelProperty(value = "创建时间")
    private Date anCreatTime;

    @ApiModelProperty(value = "修改时间")
    private Date anUpdTime;

    @ApiModelProperty(value = "是否通过 1 通过 2 不通过")
    private Integer anStatus;

    @ApiModelProperty(value = "捐赠人数")
    private Integer anPerson;

    @ApiModelProperty(value = "已捐赠金额")
    private Float price;

    @ApiModelProperty(value = "领养条件")
    private String anCondition;

    @ApiModelProperty(value = "是否被领养 1 没有 2 领养")
    private int adopt;

    @ApiModelProperty(value = "领养人id")
    private int adoptId;

    @ApiModelProperty(value = "捐赠人id")
    private int donationId;

    @TableField(exist = false)
    private AnUser anUser;


}
